import request from '@/utils/request'

// 查询产品信息列表
export function listProductInfo(query) {
    return request({
        url: '/business/ProductInfo/list',
        method: 'get',
        params: query
    })
}

// 查询产品信息详细
export function getProductInfo(id) {
    return request({
        url: '/business/ProductInfo/' + id,
        method: 'get'
    })
}

// 新增产品信息
export function addProductInfo(data) {
    return request({
        url: '/business/ProductInfo',
        method: 'post',
        data: data
    })
}

// 修改产品信息
export function updateProductInfo(data) {
    return request({
        url: '/business/ProductInfo',
        method: 'put',
        data: data
    })
}

// 删除产品信息
export function delProductInfo(id) {
    return request({
        url: '/business/ProductInfo/' + id,
        method: 'delete'
    })
}

// 导出产品信息
export function exportProductInfo(query) {
    return request({
        url: '/business/ProductInfo/export',
        method: 'get',
        params: query
    })
}



// 延期还款产品list
export function getFinancial() {
    return request({
        url: '/business/ProductInfo/getFinancial',
        method: 'get'
    })
}
